package com.find.answer.domain.common;

/**
 * @author Seon
 * @date 2022/10/19 23:28
 */
public class BaseContextHolder {
    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(Long value) {
        threadLocal.set(value);
    }

    public static Long getCurrentId() {
        return threadLocal.get();
    }
}
